package com.zhentao.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zhentao.mapper.AdminMapper;
import com.zhentao.pojo.Admin;
import com.zhentao.service.AdminService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
* @author Lenovo
* @description 针对表【admin】的数据库操作Service实现
* @createDate 2025-07-30 19:39:06
*/
@Service
public class AdminServiceImpl extends ServiceImpl<AdminMapper, Admin>
    implements AdminService{

    @Autowired
    private AdminMapper mapper;
    @Override
    public Admin Login(Admin admin) {
        QueryWrapper<Admin>wrapper=new QueryWrapper<>();
        wrapper.eq("username",admin.getUsername());
        wrapper.eq("password",admin.getPassword());
        Admin admin1 = mapper.selectOne(wrapper);
        return admin1;




    }


    //管理端登录







}




